package client;

import lombok.Data;
import java.net.Socket;

/**
 * @author lizuhu
 * @description
 * @date 2021/8/30 9:47
 */
@Data
public class ChatClient {
    private Socket socket;
    //连接状态
    boolean connect_status = false;
    //连接服务器
    public void connect() {
        try {
            socket = new Socket("127.0.0.1", 10086);
            //成功连接后将状态改为true
            connect_status = true;
            System.out.println("连接成功！");
            //创建客户端窗口对象
        } catch (Exception e) {
        }
    }

}

